package com.senlan.water.dto.appeal;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class CustomerAppealEditDTO implements Serializable {

    @ApiModelProperty("id")
    @NotNull
    private Long id;

    /**
     * 诉求类型
     */
    @ApiModelProperty("诉求类型")
    @NotBlank(message = "诉求类型不能为空")
    @Size(max = 1, message = "诉求类型长度不能超过1")
    private Integer appealType;

    /**
     * 诉求描述
     */
    @ApiModelProperty("诉求描述")
    @Size(max = 500, message = "诉求描述长度不能超过500")
    private String appealDesc;

    /**
     * 姓名
     */
    @ApiModelProperty("姓名")
    @Size(max = 10, message = "姓名长度不能超过10")
    private String name;

    /**
     * 手机号
     */
    @ApiModelProperty("手机号")
    @Size(max = 11, message = "手机号长度不能超过11")
    private String phone;
}
